﻿<%@ Page Language="C#" MasterPageFile="~/JOINT/MstPage_JOINT.master" AutoEventWireup="true" CodeFile="frmJ_TraineeAppAssignCheck.aspx.cs" Inherits="JOINT_frmJ_TraineeAppAssignCheck" Title="面接企業確定" Culture="ja-JP" uiCulture="ja" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
面接企業確定</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <style>
        .hiden
        {
            display: none;
        }
        #showCalendar
        {
        	padding-top: 5px;
            position: absolute;
            z-index: 1000;
        }
        #background
        {
            display: none;
            position: absolute;
            height: 100%;
            width: 100%;
            top: 0;
            left: 0;
            background: #000000;
            z-index: 1;
        }
    </style>
    <link href="../Style/JsStyle.css" rel="stylesheet" type="text/css" />
    <link href="../Style/datepicker.css" rel="stylesheet" type="text/css" />
    <div class="maindiv1">
        <script src="../js/jquery.min.js" type="text/javascript" language="javascript"></script>
        <script src="../js/Validation.js" type="text/javascript"></script>
        <script src="../js/jquery.blockUI.js" type="text/javascript"></script>
        <script src="../js/datepicker.js" type="text/javascript"></script>
        
        <script type="text/javascript" language="javascript">
            
            $(document).ready(function() {
                
                // registerControlToValidation("validation");
                formatDate("css_text_calender", "/");
                RegisterPage();


            });

            function RegisterPage() {
                disableControlOnLoadUpdatePanel("<%= up_組合員企業選択1.ClientID %>", "<%= ddl_組合選択.ClientID %>");
                $("#<%= hd_BrowserVer.ClientID %>").val((jQuery.browser).msie);
                if (document.getElementById("<%= ddl_組合選択.ClientID %>") != null) {
                    registerEnterEvent("enter", "<%= ddl_組合選択.ClientID %>", 3);
                } else {
                registerEnterEvent("enter", "<%= ddl_組合選択.ClientID %>", 3);
                }
                registerControlToValidation("validation");
                if ($("#<%= hd_Calender.ClientID %>").val() != "") {
                    var A = $("#<%= hd_Calender.ClientID %>").val().split(',');
                    $('#showCalendar').html('');
                    $('#showCalendar').DatePicker({
                        calendar_content: 'calendar_content',
                        control: 'ctl00_ContentPlaceHolder1_ddl_面接日',
                        flat: true,
                        date: A,
                        current: Date.Now,
                        format: 'Y-m-d',
                        calendars: 1,
                        mode: 'multiple',
                        starts: 1
                    });
                    $('#showCalendar').hide();
                    $('#buttonCal').click(function() {
                        $("#background").css({ "opacity": "0" }).fadeIn("fast");
                        $("#showCalendar").show();
                    });
                    $('#background').click(function() {
                        $('#background').fadeOut('fast');
                        $('#showCalendar').hide();
                    });
                }
            }
        </script>
        <div  class="div_content" >
            <br />
            <asp:HiddenField ID="hd_BrowserVer" runat="server" />
            
            <div class="detail-admin-row1">
                <span class="detail-admin-label" style="padding-top:2px">組合選択 :</span>&nbsp;
                 <asp:DropDownList 
                    ID="ddl_組合選択" 
                    runat="server" 
                    CssClass="dropdownlist width2 enter validation"
                    AutoPostBack="true"
                    onselectedindexchanged="ddl_組合選択_SelectedIndexChanged">
                    <asp:ListItem Selected="True" Value="-1">[選択]</asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator 
                    runat="server" 
                    ID="RFV_ddl_組合選択"
                    ControlToValidate="ddl_組合選択"
                    Display="None"
                    InitialValue="-1"
                    SetFocusOnError ="false"
                    ErrorMessage="" > </asp:RequiredFieldValidator> 
                
                <ajaxToolkit:ValidatorCalloutExtender 
                    runat="Server" 
                    ID="VCE_ddl_組合選択"
                    TargetControlID="RFV_ddl_組合選択" 
                    HighlightCssClass = "invalid"
                    Width="240px"
                    CssClass="CustomValidatorCalloutStyle" 
                    WarningIconImageUrl="../Images/warning.png" >
                </ajaxToolkit:ValidatorCalloutExtender> 
                <span class="required-field">*</span>
            </div>
            
            <asp:UpdatePanel ID="up_組合員企業選択1" runat="server">
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="ddl_組合選択" />
                </Triggers>
                <ContentTemplate>
                
                    <div class="detail-admin-row2">
                        <span class="detail-admin-label" style="padding-top:2px">組合員企業選択 :</span>&nbsp;
                         <asp:DropDownList 
                            ID="ddl_組合員企業選択"
                            runat="server" 
                            CssClass="dropdownlist width2 enter validation"
                            AutoPostBack="true"
                            onselectedindexchanged="ddl_組合員企業選択_SelectedIndexChanged">
                            <asp:ListItem Selected="True" Value="-1">[選択]</asp:ListItem>
                        </asp:DropDownList>
                         <asp:RequiredFieldValidator 
                            runat="server" 
                            ID="RFV_組合員企業選択"
                            ControlToValidate="ddl_組合員企業選択"
                            Display="None"
                            InitialValue="-1"
                            SetFocusOnError ="false"
                            ErrorMessage="" > 
                        </asp:RequiredFieldValidator> 
                        
                        <ajaxToolkit:ValidatorCalloutExtender 
                            runat="Server" 
                            ID="VCE_組合員企業選択"
                            TargetControlID="RFV_組合員企業選択" 
                            HighlightCssClass = "invalid"
                            Width="240px"
                            CssClass="CustomValidatorCalloutStyle" 
                            WarningIconImageUrl="../Images/warning.png" >
                        </ajaxToolkit:ValidatorCalloutExtender> 
                        <span class="required-field">*</span>
                    </div>
              
                   <div class="detail-admin-row1" style="padding-top:20px; width:500px">
                        <asp:HiddenField ID="hd_Calender"  runat="server" />
                        <br />
                        <span class="detail-admin-label" style="padding-top:2px">面接日 : </span>&nbsp;
                        <%--<asp:TextBox 
                            ID="txt_面接日" 
                            CssClass="Font_textbox enter validation css_text_calender"
                            style="ime-mode:disabled"
                            runat="server" 
                            MaxLength="8"
                            Width="105px" 
                            AutoPostBack="true" ontextchanged="txt_面接日_TextChanged" 
                            > 
                        </asp:TextBox>
                        <asp:ImageButton 
                            ID="imgbtn_面接日" 
                            runat="server" 
                            Height="19px"  
                            CssClass="Font_textbox"  
                            ImageUrl="~/Images/calendar.jpg" 
                            ValidationGroup ="detailsForm">
                        </asp:ImageButton>
                        
                        <ajaxToolkit:CalendarExtender 
                            ID="CE_面接日" 
                            runat="server" 
                            PopupButtonID="imgbtn_面接日" 
                            TargetControlID="txt_面接日" 
                            Format="yyyy/MM/dd"> 
                        </ajaxToolkit:CalendarExtender>
                        
                        <asp:RequiredFieldValidator 
                            runat="server" 
                            ID="RFV_面接日"
                            ControlToValidate="txt_面接日"
                            Display="None"
                            SetFocusOnError ="false"
                            ErrorMessage=""> </asp:RequiredFieldValidator>
                        
                        <ajaxToolkit:ValidatorCalloutExtender 
                            runat="Server" 
                            ID="VCE_面接日1"
                            TargetControlID="RFV_面接日" 
                            HighlightCssClass = "invalid"
                            Width="240px"
                            CssClass="CustomValidatorCalloutStyle" 
                            WarningIconImageUrl="../Images/warning.png" >
                        </ajaxToolkit:ValidatorCalloutExtender>
                        
                        <asp:CustomValidator 
                            ID= "CV_面接日" 
                            runat="server" 
                            ErrorMessage="" 
                            ControlToValidate="txt_面接日"  
                            ClientValidationFunction="isDate" 
                            Display ="None" 
                            SetFocusOnError ="false"> </asp:CustomValidator>
                         
                         <ajaxToolkit:ValidatorCalloutExtender 
                            runat="Server" 
                            ID="VCE_面接日2"
                            TargetControlID="CV_面接日" 
                            HighlightCssClass = "invalid"
                            Width="225px"
                            CssClass="CustomValidatorCalloutStyle" 
                            WarningIconImageUrl="../Images/warning.png" >
                        </ajaxToolkit:ValidatorCalloutExtender>--%>
                        <asp:DropDownList
                            id="ddl_面接日"
                            runat="server"
                            CssClass="dropdownlist width2 enter validation"
                            AutoPostBack="true"  
                            onselectedindexchanged="ddl_面接日_SelectedIndexChanged" >
                            <asp:ListItem Selected="True" Value="-1">[選択]</asp:ListItem>
                        </asp:DropDownList>
                        <input type="button" id="buttonCal" value="" class="calendar"/>
                        <div id="showCalendar" class="calendar_content">
                        </div>
                        <asp:RequiredFieldValidator 
                            runat="server" 
                            ID="RFV_面接日"
                            ControlToValidate="ddl_面接日"
                            Display="None"
                            InitialValue="-1"
                            SetFocusOnError ="false"
                            ErrorMessage=""> 
                        </asp:RequiredFieldValidator>
                        
                        <ajaxToolkit:ValidatorCalloutExtender 
                            runat="Server" 
                            ID="VCE_面接日"
                            TargetControlID="RFV_面接日" 
                            HighlightCssClass = "invalid"
                            Width="240px"
                            CssClass="CustomValidatorCalloutStyle" 
                            WarningIconImageUrl="../Images/warning.png" >
                        </ajaxToolkit:ValidatorCalloutExtender> 
                        <span class="required-field">*</span>
                       
                    </div>
                    <div id="background"></div>
              </ContentTemplate>
            </asp:UpdatePanel>
            <div class="div_height20"></div>
            <%--OnClientClick="alert('この部分がまだ作成しません。')"--%>
           <%-- <div class="btn_next">
                 <asp:Button 
                    ID="btn検索"  
                    runat="server" 
                    Text="検索"   
                    CssClass="btn" 
                    OnClientClick="javascript:focusToControlErr();"
                    onclick="btn検索_Click" />
             </div>--%>
            <div class="div_height20"></div>
        </div>
        <div class="Header4"></div>
        <!--<asp:TemplateField HeaderText="氏名" SortExpression="氏名">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" Text='<%# Bind("氏名") %>' PostBackUrl="frmJ_TraineeResumeBInput.aspx" ></asp:LinkButton>
                            </ItemTemplate>
                             <FooterTemplate>
                                     <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/controls/first copy.gif"  CommandArgument="First" CommandName="Page" />
                                    <asp:ImageButton ID="ImageButton2" runat="server"   ImageUrl="~/Images/controls/last copy.gif" CommandArgument="Prev" CommandName="Page"/>
                                     ページ<asp:DropDownList ID="ddlPages" runat="server" AutoPostBack="True" ></asp:DropDownList> 
                                        / <asp:Label ID="lblPageCount" runat="server"></asp:Label>
                                         <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/Images/controls/next copy.gif"   CommandArgument="Next" CommandName="Page" />
                                    <asp:ImageButton ID="ImageButton4" runat="server" ImageUrl="~/Images/controls/previous copy.gif"  CommandArgument="Last" CommandName="Page"/>
                                </FooterTemplate>
                                 <FooterStyle HorizontalAlign="center" VerticalAlign="Middle" BorderWidth="1" BorderStyle="Solid"  BorderColor="Black" BackColor="#808080"></FooterStyle>
                        </asp:TemplateField>-->
                        
        <div class="div_grv" style="width:760px">     
            <asp:UpdatePanel ID="up_組合名" runat="server">
               
                <ContentTemplate>
                     <asp:GridView id="grv" 
                        runat="server" 
                        Font-Names="MS UI Gothic"  
                        Width="100%"
                        AutoGenerateColumns="False" 
                        AllowPaging="true"
                        PageSize="10"
                        CssClass="mGrid" 
                        PagerStyle-CssClass="pgr" 
                        AlternatingRowStyle-CssClass="alt"
                        AutoGenerateDeleteButton="true" 
                        onrowdatabound="grv_RowDataBound" 
                        onpageindexchanging="grv_PageIndexChanging" 
                        onrowdeleting="grv_RowDeleting" >
                        
                        <Columns>
                            
                            <asp:BoundField  
                                HeaderText="氏名" 
                                DataField="氏名" 
                                ItemStyle-Width="150px" >
                            
                            <ItemStyle Width="150px" />
                            </asp:BoundField>
                            
                            <asp:BoundField  
                                HeaderText="年齢" 
                                DataField="年齢" 
                                ItemStyle-Width="40px" 
                                ItemStyle-HorizontalAlign="Right">
                                
                            <ItemStyle HorizontalAlign="Right" Width="40px" />
                            </asp:BoundField>
                                
                            <asp:BoundField  
                                HeaderText="数学テスト" 
                                DataField="数学テスト" 
                                ItemStyle-Width="80px" 
                                ItemStyle-HorizontalAlign="Right" >
                                
                            <ItemStyle HorizontalAlign="Right" Width="80px" />
                            </asp:BoundField>
                                
                            <asp:BoundField  
                                HeaderText="性格（YG)" 
                                ItemStyle-Width="80px"
                                DataField="性格（YG)" >
                                
                            <ItemStyle Width="80px" />
                            </asp:BoundField>
                                
                           <%-- <asp:BoundField  
                                HeaderText="最終学歴" 
                                ItemStyle-Width="80px" 
                                DataField="最終学歴" >
                            <ItemStyle Width="80px" />
                            </asp:BoundField>--%>
                            
                            <asp:TemplateField HeaderText="最終学歴">
                                <ItemTemplate>
                                     <div style="width:60px; text-align:left">
                                        <%#Show最終学歴(Eval("最終学歴").ToString())%>
                                    </div>
                                </ItemTemplate>
                            </asp:TemplateField>
                                
                            <asp:BoundField  
                                HeaderText="ID発行機関" 
                                ItemStyle-Width="110px" 
                                DataField="ID発行機関" >
                            <ItemStyle Width="110px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="組合名">
                                <ItemTemplate>
                                    <asp:DropDownList 
                                        ID="ddl_組合名" 
                                        CssClass="dropdownlist"
                                        AutoPostBack="true"
                                        Font-Size="11.5pt"
                                        Width="130px"
                                        runat="server" onselectedindexchanged="ddl_組合名_SelectedIndexChanged">
                                        <asp:ListItem Selected="True" Value="-1">[選択]</asp:ListItem>
                                    </asp:DropDownList>
                                    
                                    
                                   
                                </ItemTemplate>
                               <%-- <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server"></asp:Label>
                                </ItemTemplate>--%>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="企業名">
                                <ItemTemplate>
                                    <asp:DropDownList 
                                        ID="ddl_企業名" 
                                        CssClass="dropdownlist"
                                        Width="130px"
                                        AutoPostBack="true"
                                        Font-Size="11.5pt"
                                        runat="server" onselectedindexchanged="ddl_企業名_SelectedIndexChanged">
                                      <asp:ListItem Selected="True" Value="-1">[選択]</asp:ListItem>
                                    </asp:DropDownList>
                                </ItemTemplate>
                              <%--  <ItemTemplate>
                                    <asp:Label ID="Label2" runat="server"></asp:Label>
                                </ItemTemplate>--%>
                            </asp:TemplateField>

                        </Columns>
                          
                         <PagerStyle CssClass="pgr" />
                         <AlternatingRowStyle CssClass="alt" />
                          
                    </asp:GridView> 
                </ContentTemplate>
            </asp:UpdatePanel>
           
        </div>
        <div class="div_height20"></div>        
        <div class="btn_back floatR">
             <%--CausesValidation="false"--%>
             <asp:Button 
                ID="btn確定"  
                runat="server" 
                
                Text="確定"  CssClass="btn" 
                onclick="btn確定_Click"  />
        </div>
        <div class="div_height20"></div>
    </div>
    <div>&nbsp;</div>
    <br /> 
</asp:Content>

